<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>notice ssm</title>
    <script src="js\jquery.min.js"/>
    <script>
        function sub(){
            $.ajax({
                type:"post",
                url:"http://localhost/notice/",
                data:$("#form").serialize(),
                dataType:"json",
                success:function(data){
                    console.log(data);
                }
            })
        }
    </script>
</head>
<body>
    <form method="post" action="#" id="form">
        <table>
            <tr>
                <td><input type="text" name="title">操作</td>
            </tr>
            <tr>
                <td><input type="text" name="type">类型</td>
            </tr>
            <tr>
                <td><input type="text" name="content">内容</td>
            </tr>
            <tr>
                <td><input type="text" name="status">状态</td>
            </tr>
            <tr>
                <td><input type="submit" onclick="sub()"></td>
            </tr>
        </table>
    </form>
</body>
</html>